Skip to content

Conversation

@dellamas
Copy link
Contributor

@dellamas dellamas commented Jun 4, 2025

This PR fixes #1161

When using both additional-request-args and use-dynamic-url=true, the generated REST client method was missing a comma between the parameters, causing a compilation error.

This update to the api.qute template ensures that:

  • A comma is correctly added between additionalRequestArgs and @Url
  • No extra commas are introduced
  • Other parameter combinations are unaffected

between `additional-request-args` and `@Url` when both were used,
causing a compilation error.

Updated the `api.qute` template to handle this safely, without affecting
other parameter combinations.
@dellamas dellamas requested a review from a team as a code owner June 4, 2025 00:29
@ricardozanini
Copy link
Member

@dellamas the CI is red, mind taking a look first?

@dellamas
Copy link
Contributor Author

dellamas commented Jun 5, 2025

@dellamas the CI is red, mind taking a look first?

Yes, @ricardozanini , I will work on the correction between today and tomorrow. Thanks for the feedback.


dellamas and others added 3 commits June 5, 2025 17:35
…gth > 0

fix: adjust api.qute to correctly handle commas when using additionalRequestArgs and dynamic url

Updated the `api.qute` template to handle this safely, without affecting
other parameter combinations.
…gth > 0

fix: adjust api.qute to correctly handle commas when using additionalRequestArgs and dynamic url

Updated the `api.qute` template to handle this safely, without affecting
other parameter combinations.
Copy link
Member

@mcruzdev mcruzdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to see you here @dellamas, nice contribution!

@ricardozanini ricardozanini merged commit d8b3a89 into quarkiverse:main Jun 10, 2025
13 checks passed
github-actions bot pushed a commit that referenced this pull request Jun 10, 2025
…1170)

* Fixes an issue where the generated REST client was missing a comma
between `additional-request-args` and `@Url` when both were used,
causing a compilation error.

Updated the `api.qute` template to handle this safely, without affecting
other parameter combinations.

* test: add test to ensure additionalRequestArgs are generated when length > 0

fix: adjust api.qute to correctly handle commas when using additionalRequestArgs and dynamic url

Updated the `api.qute` template to handle this safely, without affecting
other parameter combinations.

* test: add test to ensure additionalRequestArgs are generated when length > 0

fix: adjust api.qute to correctly handle commas when using additionalRequestArgs and dynamic url

Updated the `api.qute` template to handle this safely, without affecting
other parameter combinations.
ricardozanini pushed a commit that referenced this pull request Jun 10, 2025
…1170) (#1178)

* Fixes an issue where the generated REST client was missing a comma
between `additional-request-args` and `@Url` when both were used,
causing a compilation error.

Updated the `api.qute` template to handle this safely, without affecting
other parameter combinations.

* test: add test to ensure additionalRequestArgs are generated when length > 0

fix: adjust api.qute to correctly handle commas when using additionalRequestArgs and dynamic url

Updated the `api.qute` template to handle this safely, without affecting
other parameter combinations.

* test: add test to ensure additionalRequestArgs are generated when length > 0

fix: adjust api.qute to correctly handle commas when using additionalRequestArgs and dynamic url

Updated the `api.qute` template to handle this safely, without affecting
other parameter combinations.

Co-authored-by: Luis Fabrício De Llamas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use-dynamic-url and additional-request-args in combination generate invalid methods (missing comma)

3 participants